package com.micro.plugins.oss.realize;

import com.micro.plugins.oss.enums.OssRuleFlag;
import com.micro.plugins.oss.executor.AbstractOssExecutor;
import com.micro.plugins.oss.executor.OssRuleExecutor;
import com.micro.plugins.oss.vo.UploadFile;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * <h1>阿里云</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/5/8
 */
@Slf4j
@Component
public class AliCloudStorage extends AbstractOssExecutor implements OssRuleExecutor {

    @Override
    public OssRuleFlag ruleConfig() {
        return OssRuleFlag.OSS_SERVICE_PROVIDER_ALIYUN;
    }

    /**
     * 上传文件
     * @param uploadFile {@link UploadFile} 图片文件上传
     * @return 上传文件返回http地址
     */
    @Override
    public String upload(UploadFile uploadFile) {
        return null;
    }

}
